// components/end-loading/index.js
import { config } from "../../config/config";
Component({
  /**
   * 组件的属性列表
   */
  properties: {},

  /**
   * 组件的初始数据
   */
  data: {
    show: false,
    config: config
  },

  /**
   * 组件的方法列表
   */
  methods: {
    apply() {
      wx.navigateTo({
        url: `/pages/apply/apply`
      });
    },
    applyNewProduct() {
      this.setData({
        show: true
      });
    },
    close() {
      this.setData({
        show: false
      });
    },
    goMessage() {
      wx.navigateTo({
        url: `/pages/message/message`
      });
    },
    // productManagement() {
    //   this.$router.push({
    //     path: "/product-management"
    //   });
    // },
    publishProduct() {
      wx.navigateTo({
        url: `/pages/published-order/published-order`
      });
      // this.$router.push({
      //   path: "published-order"
      // });
    }
    // companyInfo() {
    //   this.$router.push({
    //     path: "/company-info"
    //   });
    // }
  }
});
